package com.yyx.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * ClassName: mySelfRule
 * Package: com.yyx.myrule
 * Description:
 *
 * @Author: yyx
 * @Create: 2025/7/24 - 14:32
 */
@Configuration
public class mySelfRule {
    @Bean
    public IRule myRule(){
        return new RandomRule();//定义为随机
    }
}
